<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 清除内外边距 */
    /* * {
      padding: 0;
      margin: 0;
    } */

    p {
      width: 230px;
      height: 330px;
      background-color: rgb(54, 202, 155);
      padding: 20px 20px 10px;
      border: 1px solid rgb(255, 0, 251);
    }
  </style>
</head>

<body>
  <a href="#d1">p标签</a>
  <a href="#d2">p标签</a>
  <a href="#d3">p标签</a>

  <div>
    <p id="d1">这个是一个p标签</p>
  </div>
</body>

</html>